{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 33,
   "id": "6192a38e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import os\n",
    "os.getcwd() #返回当前工作目录\n",
    "# os.system('mkdir LearnCode')\n",
    "os.system('mv LearnCode/ ./iPython/') # 重命名\n",
    "# os.chdir('./iPython')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "e5f5193b",
   "metadata": {},
   "outputs": [],
   "source": [
    "# os.system('mkdir test') # 创建test文件夹\n",
    "# os.chdir('../')\n",
    "# os.system('rm -rf test') # 删除test文件夹\n",
    "# dir(os) # 列出所有模块函数\n",
    "# help(os) #手册\n",
    "# import glob\n",
    "# glob.glob('*.ipynb')\n",
    "# import sys\n",
    "# print(sys.argv)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "ed9ef5d0",
   "metadata": {},
   "outputs": [],
   "source": [
    "# def average(values):\n",
    "#     return sum(values) / len(values)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
